package personal.xjl.jerrymouse.spring;

import lombok.Data;

@Data
public class MyMath {
    private int n1,n2,result;

    public void add(){
        result = n1 + n2;
        System.out.println(result);
    }

    public void subtract(){
        result = n1 - n2;
        System.out.println(result);
    }

    public void mul(){
        result = n1 * n2;
        System.out.println(result);
    }

    public void devide(){
        result = n1 / n2;
        System.out.println(result);
    }
}
